package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Residents implements Serializable {
    private Integer residentId;
    private String name;
    private String phoneNumber;
    private String idCard;
    private String currentAddress;
    private String gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate dateOfBirth;
    private String ethnicity;
    private String educationLevel;
    private String maritalStatus;
    private String occupation;
    private String workUnit;
    private String password;
    private String birthplace;
    private Integer isDeleted;
    private List<String> diseases;
    private String diseasesString;
    private Integer loginId;
    private String imgUrl;
    private Integer age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate registerTime;
}
